/*
 * @Description: 抽奖
 * @Author: XuYang 
 * @Date: 2019-06-09 12:45:51 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-13 22:35:22
 */

import { AjaxServer } from './index';

/**
 * 获取抽奖信息
 * @param {object} params 参数
 */
export async function getLuckDataApi(token) {
  return AjaxServer('get', '/v1/prize/getInfo', token);
}
/**
 * 中奖奖品
 * @param {*} token 
 */
export async function getLuckResultApi(token){
  return AjaxServer('get', '/v1/prize/draw', token);
}
/**
 * 中奖历史记录
 * @param {*} token 
 */
export async function getResultListApi(token,params){
  return AjaxServer('get','/v1/prize/log', token,params)
}